package com.nursinghome.user.service.impl;

import com.nursinghome.bean.Elderly;
import com.nursinghome.user.mapper.UserElderlyMapper;
import com.nursinghome.user.service.UserElderlyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserElderlyServiceImpl implements UserElderlyService {
    @Autowired
    private UserElderlyMapper userElderlyMapper;
    @Override
    public Elderly selectInfoByEid(Long eid) {
        return userElderlyMapper.selectInfoByEid(eid);
    }

    @Override
    public Boolean updateInfo(Elderly elderly) {
        return userElderlyMapper.updateInfo(elderly) == 1;
    }
}
